
function search() {
     document.indexForm.submit();
}
function submitForm(){		 
	 var newpasswd = document.getElementById("newpasswd").value;
	 if(null == newpasswd || newpasswd == ""){
	  	alert("请输入新密码!");
	  	document.getElementById("newpasswd").focus();
	  	return false;
	 }else if(newpasswd.length<6){
	  	alert("密码长度少于6位!");
	  	document.getElementById("newpasswd").focus();
	  	return false;
	}
	var passwdconfirm = document.getElementById("passwdconfirm").value;
	if(null == passwdconfirm || passwdconfirm == ""){
	  	alert("请输入确认密码！");
	  	document.getElementById("passwdconfirm").focus();
	  	return false;
	}else if(passwdconfirm.length<6){
	  	alert("密码长度不得少于6位!");
	  	document.getElementById("passwdconfirm").focus();
	  	return false;
	}else if(passwdconfirm != newpasswd){
	  	alert("两次输入的密码不一致!");
	  	document.getElementById("passwdconfirm").focus();
	  	return false;
	}
	document.getElementById("newpasswd").value = document.getElementById("passwdconfirm").value;
  	document.addForm.submit(); 
}